package cool.mtc.minghe.service.service.sys.dict;

import cool.mtc.core.page.PageData;
import cool.mtc.minghe.data.entity.sys.dict.DictTypeDO;
import cool.mtc.minghe.data.model.base.Dict;
import cool.mtc.minghe.data.model.sys.dict.type.dto.DictTypeDTO;
import cool.mtc.minghe.data.model.sys.dict.type.dto.DictTypeListDTO;
import cool.mtc.minghe.data.model.sys.dict.type.form.DictTypeForm;
import cool.mtc.minghe.data.model.sys.dict.type.query.DictTypeQuery;

import java.util.List;

/**
 * @author 明河
 */
public interface DictTypeService extends cool.mtc.minghe.service.service.BaseService {

    long insert(DictTypeForm form);

    void update(DictTypeForm form);

    void delete(Long id);

    PageData<DictTypeListDTO> pageList(DictTypeQuery query);

    DictTypeDTO info(Long id);

    List<Dict> dictList();

    long saveWithUpdate(DictTypeDO dictTypeDO);
}
